package com.cr.front.news.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cr.front.news.pojo.entity.News;
import com.cr.front.news.pojo.vo.NewsByCategoryIdVO;
import com.cr.front.news.pojo.vo.NewsByTimeVO;
import com.cr.front.news.pojo.vo.NewsByViewsVO;
import com.cr.front.news.pojo.vo.NewsVO;

import java.util.List;


public interface NewsMapper extends BaseMapper<News> {
    List<NewsByTimeVO> selectByTimeRank();

    NewsVO selectById(Integer id);

    List<NewsByCategoryIdVO> selectByCategoryId(Integer categoryId);

    List<NewsByViewsVO> selectByViews();
}
